{% extends "base.html" %}
{% import 'bootstrap/wtf.html' as wtf %}

{% block content %}

    {% if current_user.is_authenticated %}

    <h1 class="text-center">  {{ current_user.username }} , Long Time No See !</h1>

    {% else %}
    <h1  class="text-center">  Welcome To Letters On The Cloud！</h1>
    {% endif  %}


    <br/>
    <h1 class="text-center">
    <a href="{{ url_for('add_article') }}">Let's make a new start</a>
    </h1>
    {% block app_content %}

        <div class="jumbotron text-center">
    <h1>欢迎使用 云上手札</h1>
    <p class="lead">好记性不如烂笔头！</p>
    {% if current_user.is_authenticated  %}
        <a href="{{ url_for('add_article') }}"class="btn btn-success btn-lg">Create your new notes</a>
    {% else %}
      <a href="/register" class="btn btn-primary btn-lg">注册</a>
      <a href="/login" class="btn btn-success btn-lg">登录</a>
         <br>
        <a href="{{ url_for('add_article') }}"class="btn  btn-lg">Create your new notes</a>
    {% endif %}



    </div>

    {% endblock %}
{% endblock %}